package com.input4hua.decorator.decorator;

import com.input4hua.decorator.Component;

/**
 * Created by jiahua.hu on 2019/3/3.
 */
public class DecoratorImpl1 extends Decorator {

    public DecoratorImpl1(Component component) {
        super(component);
    }

    private void selfFun1(){
        System.out.println("装饰类1自身的方法1");
    }

    @Override
    public void doSomeThing() {
        this.selfFun1();
        super.doSomeThing();
    }
}
